package kr.hkit.powerjava.chapter06;

//임금계산프로그램
import java.util.Scanner;

public class IfEx1 {
	public static void main(String[] args) {
		final int RATE = 5000;
		int pay;
		int hours;

		Scanner scInput = new Scanner(System.in);

		System.out.println("시간을 입력하시오 : ");
		hours = scInput.nextInt();

		if (hours > 8)
			pay = RATE * 8 + (int) (1.5 * RATE * (hours - 8));

		else
			pay = RATE * hours;

		System.out.printf("임금은 %,d 입니다.%n", pay);
	}

}
